package com.qf.chinatelcom.smsatragety.config;

import com.qianfeng.smsplatform.common.constants.RabbitMqConsants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration//声明这是一个配置类
public class RabbitConfig {
    /**
     * 声明消息队列
     * @return
     */
    @Bean
    public Queue queue(){
        return new Queue(RabbitMqConsants.TOPIC_PRE_SEND);
    }

    @Bean
    public Queue report_queue(){
        return new Queue(RabbitMqConsants.TOPIC_PUSH_SMS_REPORT);
    }

}
